how to find the index of an element in a tuple in python